package proxy_jdk;

import java.util.ArrayList;
import java.util.List;

/**
 * 目标类用来实现接口的抽象方法，定义标准方法的具体实现
 */
public class CustomerCRUDImpl implements CustomerCRUD{

    @Override
    public void addCustomer(Customer customer) {
        System.out.println("添加成功");
    }

    @Override
    public void deleteCustomer(String id) {
        System.out.println("删除成功");
    }

    @Override
    public void updateCustomer(Customer customer) {
        System.out.println("更新成功");
    }

    @Override
    public List<Customer> queryAllCustomers() {
        System.out.println("查找成功");
        List<Customer> customerList = new ArrayList<>();
        customerList.add(new Customer());
        customerList.add(new Customer());
        customerList.add(new Customer());
        return customerList;
    }
}
